package com.cnebula.openapi.auth.vo;

import io.vertx.core.json.JsonObject;

/**
 * 响应结果实体
 *
 */
public class ResponseResult{

	// 正常响应
	private String code = "100200";

	// 错误信息
	private String errorMsg ="";
	
	public ResponseResult(){
	}
	
	public ResponseResult(String code, String errorMsg){
		this.code = code;
		this.errorMsg = errorMsg;
	}
	
	public String toString(){
		JsonObject o = new JsonObject();
		o.put("msg_code", code);
		o.put("msg_desc", errorMsg);
		return o.toString();
	}
}